package cn.whdreamblog.servers;

import cn.whdreamblog.dao.UserDAO;
import cn.whdreamblog.daoimp.UserDAOImp;
import cn.whdreamblog.entites.User;
import cn.whdreamblog.iservers.IUserServers;

public class UserServers implements IUserServers{
	private UserDAO userDAO;
	public UserServers() {
		this.userDAO=new UserDAOImp();
	}
	
	public boolean login(User u) {
		return userDAO.isExist(u);
	}
	
	public boolean updateUserName(User user){
		return userDAO.updateUserName(user);
	};
	
	public boolean updatePwd(User user){
		return userDAO.updatePwd(user);
	};
}
